import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;

public class Main{
    public static void main(String[] args) throws InterruptedException, IOException {
        String userDir = System.getProperty("user.dir");

        String filePath = userDir + File.separator + "src/main/resources/application.yaml";

        File file = new File(filePath);

        List<String> allLines = Files.readAllLines(Paths.get(filePath));

        System.out.println(String.join("\n", allLines));
    }

}